package com.ljx.NoteBody.controller;

import com.ljx.NoteBody.common.R;
import com.ljx.NoteBody.dto.LabelDto;
import com.ljx.NoteBody.dto.NoteDto;
import com.ljx.NoteBody.entity.Label;
import com.ljx.NoteBody.service.LabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/api/label")
public class LabelController {

    @Autowired
    LabelService labelService;

    @GetMapping("/yun")
    public R<List<LabelDto>> yun(){
        return R.success(labelService.yun());
    }
}
